Class: Dang::Parser::Code

Inherits:
Object
  • Object
show all
Defined in:
lib/dang/parser.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(str, print) ⇒ Code

Returns a new instance of Code.



490
491
492
493
# File 'lib/dang/parser.rb', line 490

def initialize(str, print)
  @str = str
  @print = print
end

Instance Attribute Details

Returns the value of attribute print.



495
496
497
# File 'lib/dang/parser.rb', line 495

def print
  @print
end

#strObject (readonly)

Returns the value of attribute str.



495
496
497
# File 'lib/dang/parser.rb', line 495

def str
  @str
end