Class: Eco::Language::Test::A
Instance Attribute Summary collapse
-
#cops ⇒ Object
Returns the value of attribute cops.
-
#ops ⇒ Object
readonly
Returns the value of attribute ops.
Instance Method Summary collapse
-
#initialize(val) ⇒ A
constructor
A new instance of A.
- #mops ⇒ Object
- #rops(val) ⇒ Object
- #xops(val, xop:) ⇒ Object
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
#cops ⇒ Object
Returns the value of attribute cops.
107 108 109 |
# File 'lib/eco/language/values_at.rb', line 107 def cops @cops end |
#ops ⇒ Object (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
#mops ⇒ Object
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 |