class Generated::MatchRule
Attributes
captures[RW]
@return [Hash<String=>Rule>] The capture rules
match[RW]
@return [String] The match pattern
name[RW]
@return [String,nil] The name for this rule
Public Class Methods
new(location)
click to toggle source
Calls superclass method
Generated::Rule::new
# File lib/textmate_grammar/generated/rule.rb, line 72 def initialize(location) super(location) end
Public Instance Methods
to_h()
click to toggle source
# File lib/textmate_grammar/generated/rule.rb, line 76 def to_h { "match" => @match, "name" => @name, "captures" => @captures.transform_values(&:to_h), }.compact end