Class: Grumlin::Expressions::WithOptions

Inherits:
Object
  • Object
show all
Defined in:
lib/grumlin/expressions/with_options.rb

Constant Summary collapse

WITH_OPTIONS =
Grumlin.definitions.dig(:expressions, :with_options).freeze

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#nameObject (readonly)

Returns the value of attribute name.



17
18
19
# File 'lib/grumlin/expressions/with_options.rb', line 17

def name
  @name
end

#valueObject (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_sObject



24
25
26
# File 'lib/grumlin/expressions/with_options.rb', line 24

def to_s
  "WithOptions.#{@name}"
end