Class: Alf::Lang::Lispy

Inherits:
Support::Scope show all
Defined in:
lib/alf-lang/alf/lang/lispy.rb

Defined Under Namespace

Modules: OwnMethods

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(helpers = [ ], connection = nil) ⇒ Lispy

Creates a language instance



36
37
38
39
# File 'lib/alf-lang/alf/lang/lispy.rb', line 36

def initialize(helpers = [ ], connection = nil)
  @connection = connection
  super [ OwnMethods, Functional, Predicates ] + helpers
end

Class Method Details

.const_missing(name) ⇒ Object

Resolve DUM and DEE in ruby 1.9.2 context



42
43
44
45
46
47
48
49
# File 'lib/alf-lang/alf/lang/lispy.rb', line 42

def self.const_missing(name)
  case name.to_s
  when 'DEE' then ::Alf::Relation::DEE
  when 'DUM' then ::Alf::Relation::DUM
  else
    super
  end
end