Class: RSX::Loader::Entry

Inherits:
Struct
  • Object
show all
Defined in:
lib/rsx/loader.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#componentsObject

Returns the value of attribute components

Returns:

  • (Object)

    the current value of components



10
11
12
# File 'lib/rsx/loader.rb', line 10

def components
  @components
end

#defaultObject

Returns the value of attribute default

Returns:

  • (Object)

    the current value of default



10
11
12
# File 'lib/rsx/loader.rb', line 10

def default
  @default
end

#digestObject

Returns the value of attribute digest

Returns:

  • (Object)

    the current value of digest



10
11
12
# File 'lib/rsx/loader.rb', line 10

def digest
  @digest
end

#mtimeObject

Returns the value of attribute mtime

Returns:

  • (Object)

    the current value of mtime



10
11
12
# File 'lib/rsx/loader.rb', line 10

def mtime
  @mtime
end

#pathObject

Returns the value of attribute path

Returns:

  • (Object)

    the current value of path



10
11
12
# File 'lib/rsx/loader.rb', line 10

def path
  @path
end

#templateObject

Returns the value of attribute template

Returns:

  • (Object)

    the current value of template



10
11
12
# File 'lib/rsx/loader.rb', line 10

def template
  @template
end

Instance Method Details

#renderableObject

Markup files render through a template; component files render their default export.



13
14
15
# File 'lib/rsx/loader.rb', line 13

def renderable
  default || components.first
end