Class: Eco::Language::Models::Wrap::Test::A
- Defined in:
- lib/eco/language/models/wrap.rb
Instance Attribute Summary collapse
-
#a ⇒ Object
Returns the value of attribute a.
-
#e ⇒ Object
Returns the value of attribute e.
Instance Method Summary collapse
- #exp ⇒ Object
-
#initialize(val) ⇒ A
constructor
A new instance of A.
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
#a ⇒ Object
Returns the value of attribute a.
63 64 65 |
# File 'lib/eco/language/models/wrap.rb', line 63 def a @a end |
#e ⇒ Object
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
#exp ⇒ Object
68 69 70 |
# File 'lib/eco/language/models/wrap.rb', line 68 def exp @a**@e end |