Class: Elparser::SExpQuoted

Inherits:
AbstractSExp show all
Defined in:
lib/elparser.rb

Instance Method Summary collapse

Methods inherited from AbstractSExp

#==, #atom?, #cons?, #list?

Constructor Details

#initialize(sexp) ⇒ SExpQuoted

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_rubyObject



222
223
224
# File 'lib/elparser.rb', line 222

def to_ruby
  [@sexp.to_ruby]
end

#to_sObject



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