Class: Solargraph::Arc::Walker::Hook
- Inherits:
-
Object
- Object
- Solargraph::Arc::Walker::Hook
- Defined in:
- lib/solargraph/arc/walker.rb
Instance Attribute Summary collapse
-
#args ⇒ Object
readonly
Returns the value of attribute args.
-
#node_type ⇒ Object
readonly
Returns the value of attribute node_type.
-
#proc ⇒ Object
readonly
Returns the value of attribute proc.
Instance Method Summary collapse
-
#initialize(node_type, args, &block) ⇒ Hook
constructor
A new instance of Hook.
Constructor Details
#initialize(node_type, args, &block) ⇒ Hook
Returns a new instance of Hook.
6 7 8 9 10 |
# File 'lib/solargraph/arc/walker.rb', line 6 def initialize(node_type, args, &block) @node_type = node_type @args = args @proc = Proc.new(&block) end |
Instance Attribute Details
#args ⇒ Object (readonly)
Returns the value of attribute args.
5 6 7 |
# File 'lib/solargraph/arc/walker.rb', line 5 def args @args end |
#node_type ⇒ Object (readonly)
Returns the value of attribute node_type.
5 6 7 |
# File 'lib/solargraph/arc/walker.rb', line 5 def node_type @node_type end |
#proc ⇒ Object (readonly)
Returns the value of attribute proc.
5 6 7 |
# File 'lib/solargraph/arc/walker.rb', line 5 def proc @proc end |