Class: Restfulie::Client::Mikyung::Concatenator
- Inherits:
-
Object
- Object
- Restfulie::Client::Mikyung::Concatenator
- Defined in:
- lib/restfulie/client/mikyung/concatenator.rb
Overview
Concatenates pure text in order to build messages that are used as patterns. Usage: When there is a machine
Will invoke concatenate ‘machine’ with ‘a’ with ‘is’ with ‘there’
Instance Attribute Summary collapse
-
#content ⇒ Object
readonly
Returns the value of attribute content.
Instance Method Summary collapse
-
#initialize(content, *args) ⇒ Concatenator
constructor
A new instance of Concatenator.
Constructor Details
#initialize(content, *args) ⇒ Concatenator
Returns a new instance of Concatenator.
12 13 14 |
# File 'lib/restfulie/client/mikyung/concatenator.rb', line 12 def initialize(content, *args) @content = args.inject(content) { |buf, arg| buf << " " << arg.content } end |
Instance Attribute Details
#content ⇒ Object (readonly)
Returns the value of attribute content.
11 12 13 |
# File 'lib/restfulie/client/mikyung/concatenator.rb', line 11 def content @content end |