Class: Smartdown::Parser::InputData
- Inherits:
-
Object
- Object
- Smartdown::Parser::InputData
- Defined in:
- lib/smartdown/parser/input_set.rb
Instance Attribute Summary collapse
-
#content ⇒ Object
readonly
Returns the value of attribute content.
-
#name ⇒ Object
readonly
Returns the value of attribute name.
Instance Method Summary collapse
-
#initialize(name, content) ⇒ InputData
constructor
A new instance of InputData.
- #read ⇒ Object
Constructor Details
#initialize(name, content) ⇒ InputData
Returns a new instance of InputData.
18 19 20 21 |
# File 'lib/smartdown/parser/input_set.rb', line 18 def initialize(name, content) @name = name @content = content end |
Instance Attribute Details
#content ⇒ Object (readonly)
Returns the value of attribute content.
16 17 18 |
# File 'lib/smartdown/parser/input_set.rb', line 16 def content @content end |
#name ⇒ Object (readonly)
Returns the value of attribute name.
16 17 18 |
# File 'lib/smartdown/parser/input_set.rb', line 16 def name @name end |
Instance Method Details
#read ⇒ Object
23 24 25 |
# File 'lib/smartdown/parser/input_set.rb', line 23 def read content end |