Class: Eco::Language::Models::Wrap::Test::A

Inherits:
Object
  • Object
show all
Defined in:
lib/eco/language/models/wrap.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(val) ⇒ A

Returns a new instance of A.



64
65
66
67
# File 'lib/eco/language/models/wrap.rb', line 64

def initialize(val)
  self.a = val
  @e = 2
end

Instance Attribute Details

#aObject

Returns the value of attribute a.



63
64
65
# File 'lib/eco/language/models/wrap.rb', line 63

def a
  @a
end

#eObject

Returns the value of attribute e.



63
64
65
# File 'lib/eco/language/models/wrap.rb', line 63

def e
  @e
end

Instance Method Details

#expObject



68
69
70
# File 'lib/eco/language/models/wrap.rb', line 68

def exp
  @a**@e
end