Module: Duby::AST::Literal

Includes:
Typed
Included in:
Boolean, Fixnum, Float, Null, Regexp, String
Defined in:
lib/duby/ast.rb

Instance Attribute Summary collapse

Attributes included from Typed

#type

Instance Method Summary collapse

Instance Attribute Details

#literalObject

Returns the value of attribute literal.



198
199
200
# File 'lib/duby/ast.rb', line 198

def literal
  @literal
end

Instance Method Details

#to_sObject



200
201
202
# File 'lib/duby/ast.rb', line 200

def to_s
  "#{super}(#{literal.inspect})"
end