Class: RKit::Parser::Base
Instance Attribute Summary collapse
-
#frame ⇒ Object
Returns the value of attribute frame.
-
#raw ⇒ Object
Returns the value of attribute raw.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(md_path, frame:) ⇒ Base
constructor
A new instance of Base.
- #parse ⇒ Object
Constructor Details
#initialize(md_path, frame:) ⇒ Base
Returns a new instance of Base.
9 10 11 12 |
# File 'lib/r_kit/parser/base.rb', line 9 def initialize md_path, frame:; @raw = File.open(md_path).read @frame = frame end |
Instance Attribute Details
#frame ⇒ Object
Returns the value of attribute frame.
7 8 9 |
# File 'lib/r_kit/parser/base.rb', line 7 def frame @frame end |
#raw ⇒ Object
Returns the value of attribute raw.
7 8 9 |
# File 'lib/r_kit/parser/base.rb', line 7 def raw @raw end |
Class Method Details
.parse(md_path, frame:) ⇒ Object
3 4 5 |
# File 'lib/r_kit/parser/base.rb', line 3 def self.parse md_path, frame:; new(md_path, frame: frame).parse end |