Class: Grumlin::Expressions::WithOptions
- Inherits:
-
Object
- Object
- Grumlin::Expressions::WithOptions
- Defined in:
- lib/grumlin/expressions/with_options.rb
Constant Summary collapse
- WITH_OPTIONS =
Grumlin.definitions.dig(:expressions, :with_options).freeze
Instance Attribute Summary collapse
-
#name ⇒ Object
readonly
Returns the value of attribute name.
-
#value ⇒ Object
readonly
Returns the value of attribute value.
Instance Method Summary collapse
-
#initialize(name, value) ⇒ WithOptions
constructor
A new instance of WithOptions.
- #to_s ⇒ Object
Constructor Details
#initialize(name, value) ⇒ WithOptions
Returns a new instance of WithOptions.
19 20 21 22 |
# File 'lib/grumlin/expressions/with_options.rb', line 19 def initialize(name, value) @name = name @value = value end |
Instance Attribute Details
#name ⇒ Object (readonly)
Returns the value of attribute name.
17 18 19 |
# File 'lib/grumlin/expressions/with_options.rb', line 17 def name @name end |
#value ⇒ Object (readonly)
Returns the value of attribute value.
17 18 19 |
# File 'lib/grumlin/expressions/with_options.rb', line 17 def value @value end |
Instance Method Details
#to_s ⇒ Object
24 25 26 |
# File 'lib/grumlin/expressions/with_options.rb', line 24 def to_s "WithOptions.#{@name}" end |