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, script: nil) ⇒ Fill



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

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

Instance Attribute Details

#textObject

Returns the value of attribute text.



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

def text
  @text
end

Instance Method Details

#convertObject



59
60
61
62
# File 'lib/script2md.rb', line 59

def convert
  fill_command_output!
  self
end