Class: SublimeDSL::TextMate::Grammar::Fragment
- Inherits:
-
Object
- Object
- SublimeDSL::TextMate::Grammar::Fragment
- Defined in:
- lib/sublime_dsl/textmate/grammar.rb
Overview
A repository item.
Instance Attribute Summary collapse
-
#comment ⇒ Object
Returns the value of attribute comment.
-
#name ⇒ Object
readonly
Returns the value of attribute name.
-
#patterns ⇒ Object
Returns the value of attribute patterns.
-
#used ⇒ Object
Returns the value of attribute used.
Instance Method Summary collapse
-
#initialize(name) ⇒ Fragment
constructor
A new instance of Fragment.
Constructor Details
#initialize(name) ⇒ Fragment
Returns a new instance of Fragment.
103 104 105 106 107 108 |
# File 'lib/sublime_dsl/textmate/grammar.rb', line 103 def initialize(name) @name = name @comment = nil @patterns = [] @used = nil end |
Instance Attribute Details
#comment ⇒ Object
Returns the value of attribute comment.
100 101 102 |
# File 'lib/sublime_dsl/textmate/grammar.rb', line 100 def comment @comment end |
#name ⇒ Object (readonly)
Returns the value of attribute name.
99 100 101 |
# File 'lib/sublime_dsl/textmate/grammar.rb', line 99 def name @name end |
#patterns ⇒ Object
Returns the value of attribute patterns.
101 102 103 |
# File 'lib/sublime_dsl/textmate/grammar.rb', line 101 def patterns @patterns end |
#used ⇒ Object
Returns the value of attribute used.
102 103 104 |
# File 'lib/sublime_dsl/textmate/grammar.rb', line 102 def used @used end |