Class: Osheet::Mixin::Args
- Inherits:
-
Object
- Object
- Osheet::Mixin::Args
- Defined in:
- lib/osheet/mixin.rb
Instance Attribute Summary collapse
-
#args ⇒ Object
readonly
Returns the value of attribute args.
-
#build ⇒ Object
readonly
Returns the value of attribute build.
Instance Method Summary collapse
-
#initialize(*args, &build) ⇒ Args
constructor
A new instance of Args.
Constructor Details
#initialize(*args, &build) ⇒ Args
Returns a new instance of Args.
11 12 13 14 |
# File 'lib/osheet/mixin.rb', line 11 def initialize(*args, &build) @args = args @build = build || Proc.new {} end |
Instance Attribute Details
#args ⇒ Object (readonly)
Returns the value of attribute args.
9 10 11 |
# File 'lib/osheet/mixin.rb', line 9 def args @args end |
#build ⇒ Object (readonly)
Returns the value of attribute build.
9 10 11 |
# File 'lib/osheet/mixin.rb', line 9 def build @build end |