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.



461
462
463
464
# File 'lib/dang/parser.rb', line 461

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

Instance Attribute Details

Returns the value of attribute print.



466
467
468
# File 'lib/dang/parser.rb', line 466

def print
  @print
end

#strObject (readonly)

Returns the value of attribute str.



466
467
468
# File 'lib/dang/parser.rb', line 466

def str
  @str
end