Class: Eco::Language::Test::A

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(val) ⇒ A

Returns a new instance of A.



108
109
110
# File 'lib/eco/language/values_at.rb', line 108

def initialize(val)
  @ops = val
end

Instance Attribute Details

#copsObject

Returns the value of attribute cops.



107
108
109
# File 'lib/eco/language/values_at.rb', line 107

def cops
  @cops
end

#opsObject (readonly)

Returns the value of attribute ops.



107
108
109
# File 'lib/eco/language/values_at.rb', line 107

def ops
  @ops
end

Instance Method Details

#mopsObject



111
112
113
# File 'lib/eco/language/values_at.rb', line 111

def mops
  'm-' + @ops
end

#rops(val) ⇒ Object



117
118
119
# File 'lib/eco/language/values_at.rb', line 117

def rops(val)
  @ops + " there we go with '#{val}' !!"
end

#xops(val, xop:) ⇒ Object



120
121
122
# File 'lib/eco/language/values_at.rb', line 120

def xops(val, xop:)
  @ops + " #{val}!! Xops do the trick with '#{xop}'."
end