Class: Marker::Argument

Inherits:
ParseNode show all
Defined in:
lib/marker/templates.rb

Instance Method Summary collapse

Methods inherited from Treetop::Runtime::SyntaxNode

#present?

Instance Method Details

#nameObject

– defaults ++



96
97
98
# File 'lib/marker/templates.rb', line 96

def name #:nodoc:
  nil
end

#to_html(options = {}) ⇒ Object



87
88
89
# File 'lib/marker/templates.rb', line 87

def to_html( options = {} )
  to_s
end

#to_s(options = {}) ⇒ Object



91
92
93
# File 'lib/marker/templates.rb', line 91

def to_s( options = {} )
  ( name ? "'#{name}' => '#{val}'" : "'#{val}'" )
end

#valObject



100
101
102
# File 'lib/marker/templates.rb', line 100

def val
  nil
end