class Parslet::Pattern::SimpleBind
Binds a symbol to a simple subtree, one that is not either a sequence of elements or a collection of attributes.
Public Instance Methods
can_bind?(subtree)
click to toggle source
# File lib/parslet/pattern/binding.rb, line 37 def can_bind?(subtree) not [Hash, Array].include?(subtree.class) end