Class: Ruco::LitString
- Inherits:
-
Object
- Object
- Ruco::LitString
- Defined in:
- lib/ruco.rb
Instance Attribute Summary collapse
-
#str ⇒ Object
Returns the value of attribute str.
Instance Method Summary collapse
- #generate(indent = 0) ⇒ Object
-
#initialize(str, prodset) ⇒ LitString
constructor
A new instance of LitString.
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
#str ⇒ Object
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 |