Class: CodeParser
- Inherits:
-
Object
- Object
- CodeParser
- Defined in:
- app/runners_strategy.rb
Instance Attribute Summary collapse
-
#code ⇒ Object
readonly
Returns the value of attribute code.
-
#parser ⇒ Object
readonly
Returns the value of attribute parser.
Instance Method Summary collapse
-
#initialize(code, parser) ⇒ CodeParser
constructor
A new instance of CodeParser.
- #parse ⇒ Object
Constructor Details
#initialize(code, parser) ⇒ CodeParser
Returns a new instance of CodeParser.
42 43 44 45 |
# File 'app/runners_strategy.rb', line 42 def initialize(code, parser) @code = code @parser = parser end |
Instance Attribute Details
#code ⇒ Object (readonly)
Returns the value of attribute code.
40 41 42 |
# File 'app/runners_strategy.rb', line 40 def code @code end |
#parser ⇒ Object (readonly)
Returns the value of attribute parser.
40 41 42 |
# File 'app/runners_strategy.rb', line 40 def parser @parser end |
Instance Method Details
#parse ⇒ Object
47 48 49 |
# File 'app/runners_strategy.rb', line 47 def parse parser.parse(code) end |