Module: Hexpress::Wrapped

Included in:
Nested, Values::Either
Defined in:
lib/hexpress/wrapped.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#closeObject (readonly)

Returns the value of attribute close.



3
4
5
# File 'lib/hexpress/wrapped.rb', line 3

def close
  @close
end

#openObject (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