class Generated::NameRule
Represents a rule in the form of { name = 'string'; }
Attributes
name[RW]
@return [String] The name of the rule
Public Class Methods
new(location, name)
click to toggle source
Calls superclass method
Generated::Rule::new
# File lib/textmate_grammar/generated/rule.rb, line 37 def initialize(location, name) super(location) @name = name end
Public Instance Methods
to_h()
click to toggle source
# File lib/textmate_grammar/generated/rule.rb, line 42 def to_h {"name" => @name} end