Class: Liquid::Condition::MethodLiteral
- Inherits:
-
Object
- Object
- Liquid::Condition::MethodLiteral
- Defined in:
- lib/liquid/condition.rb
Instance Attribute Summary collapse
-
#method_name ⇒ Object
readonly
Returns the value of attribute method_name.
-
#to_s ⇒ Object
readonly
Returns the value of attribute to_s.
Instance Method Summary collapse
-
#initialize(method_name, to_s) ⇒ MethodLiteral
constructor
A new instance of MethodLiteral.
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_name ⇒ Object (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_s ⇒ Object (readonly)
Returns the value of attribute to_s.
34 35 36 |
# File 'lib/liquid/condition.rb', line 34 def to_s @to_s end |