Class: Loom::Pattern::ExpandingReference

Inherits:
Object
  • Object
show all
Defined in:
lib/loom/pattern/expanding_reference.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#descObject (readonly)

Returns the value of attribute desc.



4
5
6
# File 'lib/loom/pattern/expanding_reference.rb', line 4

def desc
  @desc
end

#reference_slugsObject (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

#slugObject (readonly)

Returns the value of attribute slug.



4
5
6
# File 'lib/loom/pattern/expanding_reference.rb', line 4

def slug
  @slug
end

#source_fileObject (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

Returns:

  • (Boolean)


12
13
14
# File 'lib/loom/pattern/expanding_reference.rb', line 12

def is_expanding?
  true
end