Class: ZplRender::Parser::Command
- Inherits:
-
Struct
- Object
- Struct
- ZplRender::Parser::Command
- Defined in:
- lib/zpl_render/parser.rb
Instance Attribute Summary collapse
-
#name ⇒ Object
Returns the value of attribute name.
-
#params ⇒ Object
Returns the value of attribute params.
-
#prefix ⇒ Object
Returns the value of attribute prefix.
Instance Method Summary collapse
-
#args ⇒ Object
Split comma-separated parameters, preserving empty slots.
Instance Attribute Details
#name ⇒ Object
Returns the value of attribute name
12 13 14 |
# File 'lib/zpl_render/parser.rb', line 12 def name @name end |
#params ⇒ Object
Returns the value of attribute params
12 13 14 |
# File 'lib/zpl_render/parser.rb', line 12 def params @params end |
#prefix ⇒ Object
Returns the value of attribute prefix
12 13 14 |
# File 'lib/zpl_render/parser.rb', line 12 def prefix @prefix end |
Instance Method Details
#args ⇒ Object
Split comma-separated parameters, preserving empty slots.
14 15 16 |
# File 'lib/zpl_render/parser.rb', line 14 def args @args ||= params.split(",", -1).map(&:strip) end |