Class: Liquid::Expression::MethodLiteral

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

Instance Attribute Summary collapse

Instance Method Summary collapse

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_nameObject (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_sObject (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_liquidObject



11
12
13
# File 'lib/liquid/expression.rb', line 11

def to_liquid
  to_s
end