Class: SublimeDSL::TextMate::Grammar::Fragment

Inherits:
Object
  • Object
show all
Defined in:
lib/sublime_dsl/textmate/grammar.rb

Overview

A repository item.

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#commentObject

Returns the value of attribute comment.



100
101
102
# File 'lib/sublime_dsl/textmate/grammar.rb', line 100

def comment
  @comment
end

#nameObject (readonly)

Returns the value of attribute name.



99
100
101
# File 'lib/sublime_dsl/textmate/grammar.rb', line 99

def name
  @name
end

#patternsObject

Returns the value of attribute patterns.



101
102
103
# File 'lib/sublime_dsl/textmate/grammar.rb', line 101

def patterns
  @patterns
end

#usedObject

Returns the value of attribute used.



102
103
104
# File 'lib/sublime_dsl/textmate/grammar.rb', line 102

def used
  @used
end