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.



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

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

Instance Attribute Details

Returns the value of attribute print.



469
470
471
# File 'lib/dang/parser.rb', line 469

def print
  @print
end

#strObject (readonly)

Returns the value of attribute str.



469
470
471
# File 'lib/dang/parser.rb', line 469

def str
  @str
end