Class: Loom::Pattern::ExpandingReference
- Inherits:
-
Object
- Object
- Loom::Pattern::ExpandingReference
- Defined in:
- lib/loom/pattern/expanding_reference.rb
Instance Attribute Summary collapse
-
#desc ⇒ Object
readonly
Returns the value of attribute desc.
-
#reference_slugs ⇒ Object
readonly
Returns the value of attribute reference_slugs.
-
#slug ⇒ Object
readonly
Returns the value of attribute slug.
-
#source_file ⇒ Object
readonly
Returns the value of attribute source_file.
Instance Method Summary collapse
-
#initialize(slug, reference_slugs, source_file, description) ⇒ ExpandingReference
constructor
A new instance of ExpandingReference.
- #is_expanding? ⇒ Boolean
Constructor Details
#initialize(slug, reference_slugs, source_file, description) ⇒ ExpandingReference
Returns a new instance of ExpandingReference.
6 7 8 9 10 |
# File 'lib/loom/pattern/expanding_reference.rb', line 6 def initialize(slug, reference_slugs, source_file, description) @slug = slug @reference_slugs = reference_slugs @desc = description end |
Instance Attribute Details
#desc ⇒ Object (readonly)
Returns the value of attribute desc.
4 5 6 |
# File 'lib/loom/pattern/expanding_reference.rb', line 4 def desc @desc end |
#reference_slugs ⇒ Object (readonly)
Returns the value of attribute reference_slugs.
4 5 6 |
# File 'lib/loom/pattern/expanding_reference.rb', line 4 def reference_slugs @reference_slugs end |
#slug ⇒ Object (readonly)
Returns the value of attribute slug.
4 5 6 |
# File 'lib/loom/pattern/expanding_reference.rb', line 4 def slug @slug end |
#source_file ⇒ Object (readonly)
Returns the value of attribute source_file.
4 5 6 |
# File 'lib/loom/pattern/expanding_reference.rb', line 4 def source_file @source_file end |
Instance Method Details
#is_expanding? ⇒ Boolean
12 13 14 |
# File 'lib/loom/pattern/expanding_reference.rb', line 12 def true end |