Class: Smartdown::Parser::InputData

Inherits:
Object
  • Object
show all
Defined in:
lib/smartdown/parser/input_set.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#contentObject (readonly)

Returns the value of attribute content.



16
17
18
# File 'lib/smartdown/parser/input_set.rb', line 16

def content
  @content
end

#nameObject (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

#readObject



23
24
25
# File 'lib/smartdown/parser/input_set.rb', line 23

def read
  content
end