Class: XDry::Parser
- Inherits:
-
Object
- Object
- XDry::Parser
- Defined in:
- lib/xdry/parsing/parsers.rb
Direct Known Subclasses
Instance Attribute Summary collapse
-
#scope ⇒ Object
readonly
Returns the value of attribute scope.
Instance Method Summary collapse
-
#initialize(scope) ⇒ Parser
constructor
A new instance of Parser.
- #to_s ⇒ Object
Constructor Details
#initialize(scope) ⇒ Parser
Returns a new instance of Parser.
9 10 11 |
# File 'lib/xdry/parsing/parsers.rb', line 9 def initialize scope @scope = scope end |
Instance Attribute Details
#scope ⇒ Object (readonly)
Returns the value of attribute scope.
7 8 9 |
# File 'lib/xdry/parsing/parsers.rb', line 7 def scope @scope end |
Instance Method Details
#to_s ⇒ Object
13 14 15 |
# File 'lib/xdry/parsing/parsers.rb', line 13 def to_s "#{self.class.name}" end |