Module: Duby::AST::Literal

Includes:
Typed
Included in:
Boolean, Fixnum, Float, Null, 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.



121
122
123
# File 'lib/duby/ast.rb', line 121

def literal
  @literal
end

Instance Method Details

#to_sObject



123
124
125
# File 'lib/duby/ast.rb', line 123

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