Module: Hexpress::Wrapped
- Included in:
- Nested, Values::Either
- Defined in:
- lib/hexpress/wrapped.rb
Instance Attribute Summary collapse
-
#close ⇒ Object
readonly
Returns the value of attribute close.
-
#open ⇒ Object
readonly
Returns the value of attribute open.
Instance Method Summary collapse
Instance Attribute Details
#close ⇒ Object (readonly)
Returns the value of attribute close.
3 4 5 |
# File 'lib/hexpress/wrapped.rb', line 3 def close @close end |
#open ⇒ Object (readonly)
Returns the value of attribute open.
3 4 5 |
# File 'lib/hexpress/wrapped.rb', line 3 def open @open end |
Instance Method Details
#wrapping(content) ⇒ Object
5 6 7 |
# File 'lib/hexpress/wrapped.rb', line 5 def wrapping(content) "#{open}#{content}#{close}" end |