Class: Exerb::Recipe::ResourceBlock::IconBlock
- Inherits:
-
Object
- Object
- Exerb::Recipe::ResourceBlock::IconBlock
- Defined in:
- lib/exerb/recipe.rb
Defined Under Namespace
Classes: Entry
Instance Attribute Summary collapse
-
#entries ⇒ Object
readonly
Returns the value of attribute entries.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(block, filename) ⇒ IconBlock
constructor
A new instance of IconBlock.
Constructor Details
Instance Attribute Details
#entries ⇒ Object (readonly)
Returns the value of attribute entries.
244 245 246 |
# File 'lib/exerb/recipe.rb', line 244 def entries @entries end |
Class Method Details
.analyze(blocks, filename) ⇒ Object
246 247 248 249 250 251 |
# File 'lib/exerb/recipe.rb', line 246 def self.analyze(blocks, filename) block = blocks.delete("icon") return nil if block.nil? raise(Exerb::ExerbError, "#{filename}: icon block must be Array object -- #{block.type}") unless block.kind_of?(Array) return self.new(block, filename) end |