Class: Marker::Argument

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

Direct Known Subclasses

BlockArgument, InlineArgument

Instance Method Summary collapse

Methods inherited from Treetop::Runtime::SyntaxNode

#present?

Instance Method Details

#block?Boolean

is this argument a block style?

Returns:

  • (Boolean)


127
128
129
# File 'lib/marker/templates.rb', line 127

def block?
  true
end

#nameObject

– defaults ++



132
133
134
# File 'lib/marker/templates.rb', line 132

def name #:nodoc:
  nil
end

#to_html(options = {}) ⇒ Object



118
119
120
# File 'lib/marker/templates.rb', line 118

def to_html( options = {} )
  to_s(options)
end

#to_s(options = {}) ⇒ Object



122
123
124
# File 'lib/marker/templates.rb', line 122

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

#valObject



136
137
138
# File 'lib/marker/templates.rb', line 136

def val
  nil
end