Class: Elparser::SExpQuoted
Instance Method Summary
collapse
#==, #atom?, #cons?, #list?
Constructor Details
Returns a new instance of SExpQuoted.
213
214
215
|
# File 'lib/elparser.rb', line 213
def initialize(sexp)
@sexp = sexp
end
|
Instance Method Details
#to_ruby ⇒ Object
222
223
224
|
# File 'lib/elparser.rb', line 222
def to_ruby
[@sexp.to_ruby]
end
|
#to_s ⇒ Object
216
217
218
|
# File 'lib/elparser.rb', line 216
def to_s
"'#{@sexp.to_s}"
end
|
#visit(&blcok) ⇒ Object
219
220
221
|
# File 'lib/elparser.rb', line 219
def visit(&blcok)
@sexp.visit(&block)
end
|