Class: Script2md::Fill

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(text, source_path: nil) ⇒ Fill

Returns a new instance of Fill.



49
50
51
52
# File 'lib/script2md.rb', line 49

def initialize(text, source_path: nil)
  @text = text
  @source_path = source_path
end

Instance Attribute Details

#textObject

Returns the value of attribute text.



54
55
56
# File 'lib/script2md.rb', line 54

def text
  @text
end

Instance Method Details

#convertObject



56
57
58
59
# File 'lib/script2md.rb', line 56

def convert
  fill_command_output!
  self
end