Class: Marker::Argument
Instance Method Summary
collapse
#present?
Instance Method Details
#block? ⇒ Boolean
is this argument a block style?
127
128
129
|
# File 'lib/marker/templates.rb', line 127
def block?
true
end
|
#name ⇒ Object
132
133
134
|
# File 'lib/marker/templates.rb', line 132
def name 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
|
#val ⇒ Object
136
137
138
|
# File 'lib/marker/templates.rb', line 136
def val
nil
end
|