Class: Liquid::Condition::MethodLiteral

Inherits:
Object
  • Object
show all
Defined in:
lib/liquid/condition.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(method_name, to_s) ⇒ MethodLiteral

Returns a new instance of MethodLiteral.



36
37
38
39
# File 'lib/liquid/condition.rb', line 36

def initialize(method_name, to_s)
  @method_name = method_name
  @to_s = to_s
end

Instance Attribute Details

#method_nameObject (readonly)

Returns the value of attribute method_name.



34
35
36
# File 'lib/liquid/condition.rb', line 34

def method_name
  @method_name
end

#to_sObject (readonly)

Returns the value of attribute to_s.



34
35
36
# File 'lib/liquid/condition.rb', line 34

def to_s
  @to_s
end