Class: SsSyntax::SsSyntax
- Inherits:
-
Object
- Object
- SsSyntax::SsSyntax
- Defined in:
- lib/ss_syntax.rb
Instance Attribute Summary collapse
-
#text ⇒ Object
readonly
Returns the value of attribute text.
-
#type ⇒ Object
readonly
Returns the value of attribute type.
Instance Method Summary collapse
-
#initialize(text, type = :text) ⇒ SsSyntax
constructor
A new instance of SsSyntax.
- #parse ⇒ Object
Constructor Details
#initialize(text, type = :text) ⇒ SsSyntax
Returns a new instance of SsSyntax.
7 8 9 10 |
# File 'lib/ss_syntax.rb', line 7 def initialize(text, type = :text) @text = text @type = type end |
Instance Attribute Details
#text ⇒ Object (readonly)
Returns the value of attribute text.
5 6 7 |
# File 'lib/ss_syntax.rb', line 5 def text @text end |
#type ⇒ Object (readonly)
Returns the value of attribute type.
5 6 7 |
# File 'lib/ss_syntax.rb', line 5 def type @type end |