Sha256: a4aca05a2e40d53205d654170f6c279135f0903026f8e1ccb356705c872baa15
Contents?: true
Size: 458 Bytes
Versions: 1
Compression:
Stored size: 458 Bytes
Contents
module MountainView class Component attr_reader :name def initialize(name) @name = name end def title @name.humanize end def styleguide_stubs YAML.load_file stubs_file end def stubs_file MountainView.configuration.components_path.join(name, "#{name}.yml") end def stubs? styleguide_stubs.is_a?(Array) && styleguide_stubs.any? rescue Errno::ENOENT false end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
mountain_view-0.7.1 | lib/mountain_view/component.rb |