Class: Fretboard::Parser
- Inherits:
-
Object
- Object
- Fretboard::Parser
- Defined in:
- lib/fretboard/parser.rb
Instance Attribute Summary collapse
-
#args ⇒ Object
readonly
Returns the value of attribute args.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(args) ⇒ Parser
constructor
A new instance of Parser.
- #parse ⇒ Object
Constructor Details
#initialize(args) ⇒ Parser
Returns a new instance of Parser.
21 22 23 |
# File 'lib/fretboard/parser.rb', line 21 def initialize(args) @args = args end |
Instance Attribute Details
#args ⇒ Object (readonly)
Returns the value of attribute args.
15 16 17 |
# File 'lib/fretboard/parser.rb', line 15 def args @args end |
Class Method Details
.parse(args) ⇒ Object
17 18 19 |
# File 'lib/fretboard/parser.rb', line 17 def self.parse(args) new(args).parse end |