Class: Atomy::Pattern::ClassVariable
- Inherits:
-
Atomy::Pattern
- Object
- Atomy::Pattern
- Atomy::Pattern::ClassVariable
- Defined in:
- lib/atomy/pattern/class_variable.rb
Instance Attribute Summary collapse
-
#name ⇒ Object
readonly
Returns the value of attribute name.
Attributes inherited from Atomy::Pattern
Instance Method Summary collapse
-
#initialize(name) ⇒ ClassVariable
constructor
A new instance of ClassVariable.
- #matches?(_) ⇒ Boolean
Methods inherited from Atomy::Pattern
#===, #inline_matches?, #target
Constructor Details
#initialize(name) ⇒ ClassVariable
Returns a new instance of ClassVariable.
7 8 9 |
# File 'lib/atomy/pattern/class_variable.rb', line 7 def initialize(name) @name = name end |
Instance Attribute Details
#name ⇒ Object (readonly)
Returns the value of attribute name.
5 6 7 |
# File 'lib/atomy/pattern/class_variable.rb', line 5 def name @name end |
Instance Method Details
#matches?(_) ⇒ Boolean
11 12 13 |
# File 'lib/atomy/pattern/class_variable.rb', line 11 def matches?(_) true end |