Class: Easy::Configuration::Entity
- Inherits:
-
Object
- Object
- Easy::Configuration::Entity
- Defined in:
- lib/easy/configuration/entity.rb
Instance Attribute Summary collapse
-
#no_count ⇒ Object
Returns the value of attribute no_count.
Instance Method Summary collapse
-
#initialize(klass_name) ⇒ Entity
constructor
A new instance of Entity.
- #menu(section, &block) ⇒ Object
- #no_count? ⇒ Boolean
Constructor Details
Instance Attribute Details
#no_count ⇒ Object
Returns the value of attribute no_count.
5 6 7 |
# File 'lib/easy/configuration/entity.rb', line 5 def no_count @no_count end |
Instance Method Details
#menu(section, &block) ⇒ Object
17 18 19 20 21 22 23 |
# File 'lib/easy/configuration/entity.rb', line 17 def (section, &block) if block_given? yield @menu[section.to_s] else @menu[section.to_s] end end |
#no_count? ⇒ Boolean
13 14 15 |
# File 'lib/easy/configuration/entity.rb', line 13 def no_count? !!no_count end |