Module: Rfm

Extended by:
Rfm
Included in:
Rfm
Defined in:
lib/rfm/utilities/compound_query.rb,
lib/rfm.rb,
lib/rfm.rb,
lib/rfm/base.rb,
lib/rfm/error.rb,
lib/rfm/server.rb,
lib/rfm/record.rb,
lib/rfm/layout.rb,
lib/rfm/version.rb,
lib/rfm/database.rb,
lib/rfm/resultset.rb,
lib/rfm/metadata/field.rb,
lib/rfm/metadata/datum.rb,
lib/rfm/metadata/script.rb,
lib/rfm/utilities/config.rb,
lib/rfm/utilities/factory.rb,
lib/rfm/utilities/connection.rb,
lib/rfm/metadata/layout_meta.rb,
lib/rfm/utilities/sax_parser.rb,
lib/rfm/metadata/field_control.rb,
lib/rfm/metadata/resultset_meta.rb,
lib/rfm/metadata/value_list_item.rb,
lib/rfm/utilities/case_insensitive_hash.rb

Overview

The classes in this module are used internally by RFM and are not intended for outside use.

Defined Under Namespace

Modules: Config, Error, Factory, Metadata, SaxParser Classes: AuthenticationError, Base, CaseInsensitiveHash, CommunicationError, CompoundQuery, Connection, Database, Layout, ParameterError, Record, Resultset, Server

Constant Summary

PATH =
File.expand_path(File.dirname(__FILE__))
VERSION_DEFAULT =
'none'
VERSION =
File.read(PATH + '/rfm/VERSION').lines.first.chomp  rescue VERSION_DEFAULT

Instance Method Summary (collapse)

Instance Method Details

- (Object) info



42
43
44
45
46
47
48
49
50
51
52
53
54
55
# File 'lib/rfm.rb', line 42

def info
   rslt = <<-EEOOFF
     Gem name: ginjo-rfm
     Version: #{VERSION}
     ActiveModel loadable? #{begin; Gem::Specification::find_all_by_name('activemodel')[0].version.to_s; rescue Exception; false; end}
     ActiveModel loaded? #{defined?(ActiveModel) ? 'true' : 'false'}
     XML default parser: #{SaxParser::Handler.get_backend}
     Ruby: #{RUBY_VERSION}
   EEOOFF
   rslt.gsub!(/^[ \t]*/, '')
   rslt
 rescue
 	"Could not retrieve info: #{$!}"
end

- (Object) info_short



57
58
59
# File 'lib/rfm.rb', line 57

def info_short
	"Using ginjo-rfm version #{::Rfm::VERSION} with #{SaxParser::Handler.get_backend}"
end

- (Object) logger Also known as: log

attr_accessor :log



79
80
81
# File 'lib/rfm.rb', line 79

def logger
	@@logger ||= get_config[:logger] || Logger.new(STDOUT).tap {|l| l.formatter = proc {|severity, datetime, progname, msg| "#{datetime}: Rfm-#{severity} #{msg}\n"}}
end

- (Object) logger=(obj)



85
86
87
# File 'lib/rfm.rb', line 85

def logger=(obj)
	@@logger = obj
end

- (Object) modelize(*args)



72
73
74
75
# File 'lib/rfm.rb', line 72

def modelize(*args)
	Rfm::Base
	Rfm::Factory.modelize(*args)
end

- (Object) models(*args)



67
68
69
70
# File 'lib/rfm.rb', line 67

def models(*args)
	Rfm::Base
	Rfm::Factory.models(*args)
end