Class: Micronaut::Example
Instance Attribute Summary collapse
-
#behaviour ⇒ Object
readonly
Returns the value of attribute behaviour.
-
#description ⇒ Object
readonly
Returns the value of attribute description.
-
#example_block ⇒ Object
readonly
Returns the value of attribute example_block.
-
#metadata ⇒ Object
readonly
Returns the value of attribute metadata.
Instance Method Summary collapse
-
#initialize(behaviour, desc, options, example_block = nil) ⇒ Example
constructor
A new instance of Example.
- #inspect ⇒ Object
- #to_s ⇒ Object
Constructor Details
#initialize(behaviour, desc, options, example_block = nil) ⇒ Example
Returns a new instance of Example.
7 8 9 10 11 12 |
# File 'lib/micronaut/example.rb', line 7 def initialize(behaviour, desc, , example_block=nil) @behaviour, @description, , @example_block = behaviour, desc, , example_block = @behaviour..dup [:description] = description .update() end |
Instance Attribute Details
#behaviour ⇒ Object (readonly)
Returns the value of attribute behaviour.
5 6 7 |
# File 'lib/micronaut/example.rb', line 5 def behaviour @behaviour end |
#description ⇒ Object (readonly)
Returns the value of attribute description.
5 6 7 |
# File 'lib/micronaut/example.rb', line 5 def description @description end |
#example_block ⇒ Object (readonly)
Returns the value of attribute example_block.
5 6 7 |
# File 'lib/micronaut/example.rb', line 5 def example_block @example_block end |
#metadata ⇒ Object (readonly)
Returns the value of attribute metadata.
5 6 7 |
# File 'lib/micronaut/example.rb', line 5 def end |