Class: Eco::Language::Test::B

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(a) ⇒ B

Returns a new instance of B.



130
131
132
# File 'lib/eco/language/values_at.rb', line 130

def initialize(a)
  @a = A.new(a)
end

Instance Attribute Details

#aObject

Returns the value of attribute a.



129
130
131
# File 'lib/eco/language/values_at.rb', line 129

def a
  @a
end

#cObject

Returns the value of attribute c.



129
130
131
# File 'lib/eco/language/values_at.rb', line 129

def c
  @c
end

Instance Method Details

#bofs(v1, v2:) ⇒ Object



136
137
138
# File 'lib/eco/language/values_at.rb', line 136

def bofs(v1, v2:)
  "#{v1} #{v2} with #{@c}"
end