Class: XDry::Parser

Inherits:
Object
  • Object
show all
Defined in:
lib/xdry/parsing/parsers.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#scopeObject (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_sObject



13
14
15
# File 'lib/xdry/parsing/parsers.rb', line 13

def to_s
  "#{self.class.name}"
end