Class: Ruco::LitString

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(str, prodset) ⇒ LitString

Returns a new instance of LitString.



17
18
19
# File 'lib/ruco.rb', line 17

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

Instance Attribute Details

#strObject

Returns the value of attribute str.



16
17
18
# File 'lib/ruco.rb', line 16

def str
  @str
end

Instance Method Details

#generate(indent = 0) ⇒ Object



21
22
23
# File 'lib/ruco.rb', line 21

def generate(indent=0)
	"#{("\t"*indent)}\"#{str}\""
end