class Generated::PatternRule
Represents a rule in the form of { patterns = (Rule
…); }
Attributes
rules[RW]
@return [Array<Rule>] The list of rules
Public Class Methods
new(location, rules)
click to toggle source
Calls superclass method
Generated::Rule::new
# File lib/textmate_grammar/generated/rule.rb, line 54 def initialize(location, rules) super(location) @rules = rules end
Public Instance Methods
to_h()
click to toggle source
# File lib/textmate_grammar/generated/rule.rb, line 59 def to_h {"patterns" => @rules.map(&:to_h)} end