Class: Liquid::Expression::MethodLiteral
- Inherits:
-
Object
- Object
- Liquid::Expression::MethodLiteral
- Defined in:
- lib/liquid/expression.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.
- #to_liquid ⇒ Object
Constructor Details
#initialize(method_name, to_s) ⇒ MethodLiteral
Returns a new instance of MethodLiteral.
6 7 8 9 |
# File 'lib/liquid/expression.rb', line 6 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.
4 5 6 |
# File 'lib/liquid/expression.rb', line 4 def method_name @method_name end |
#to_s ⇒ Object (readonly)
Returns the value of attribute to_s.
4 5 6 |
# File 'lib/liquid/expression.rb', line 4 def to_s @to_s end |
Instance Method Details
#to_liquid ⇒ Object
11 12 13 |
# File 'lib/liquid/expression.rb', line 11 def to_liquid to_s end |