Class: Nickel::Construct
- Inherits:
-
Object
- Object
- Nickel::Construct
- Defined in:
- lib/nickel/construct.rb
Direct Known Subclasses
DateConstruct, DateSpanConstruct, NullConstruct, RecurrenceConstruct, TimeConstruct, TimeSpanConstruct, WrapperConstruct
Instance Attribute Summary collapse
-
#comp_end ⇒ Object
Returns the value of attribute comp_end.
-
#comp_start ⇒ Object
Returns the value of attribute comp_start.
-
#found_in ⇒ Object
Returns the value of attribute found_in.
Instance Method Summary collapse
-
#initialize(h) ⇒ Construct
constructor
A new instance of Construct.
Constructor Details
#initialize(h) ⇒ Construct
Returns a new instance of Construct.
4 5 6 |
# File 'lib/nickel/construct.rb', line 4 def initialize(h) h.each { |k, v| send("#{k}=", v) } end |
Instance Attribute Details
#comp_end ⇒ Object
Returns the value of attribute comp_end.
3 4 5 |
# File 'lib/nickel/construct.rb', line 3 def comp_end @comp_end end |
#comp_start ⇒ Object
Returns the value of attribute comp_start.
3 4 5 |
# File 'lib/nickel/construct.rb', line 3 def comp_start @comp_start end |
#found_in ⇒ Object
Returns the value of attribute found_in.
3 4 5 |
# File 'lib/nickel/construct.rb', line 3 def found_in @found_in end |