Class: Presenter::Each
Direct Known Subclasses
Instance Attribute Summary collapse
-
#value ⇒ Object
Returns the value of attribute value.
Instance Method Summary collapse
-
#initialize(value = nil) ⇒ Each
constructor
A new instance of Each.
- #output ⇒ Object
- #to_s ⇒ Object
Methods included from Name
Constructor Details
#initialize(value = nil) ⇒ Each
Returns a new instance of Each.
78 79 80 |
# File 'lib/presenter.rb', line 78 def initialize(value = nil) self.value = value end |
Instance Attribute Details
#value ⇒ Object
Returns the value of attribute value.
76 77 78 |
# File 'lib/presenter.rb', line 76 def value @value end |
Instance Method Details
#output ⇒ Object
82 83 84 |
# File 'lib/presenter.rb', line 82 def output value end |
#to_s ⇒ Object
86 87 88 |
# File 'lib/presenter.rb', line 86 def to_s output end |