Class: Dandelion::Change
- Inherits:
-
Object
- Object
- Dandelion::Change
- Defined in:
- lib/dandelion/change.rb
Instance Attribute Summary collapse
-
#path ⇒ Object
readonly
Returns the value of attribute path.
-
#type ⇒ Object
readonly
Returns the value of attribute type.
Instance Method Summary collapse
- #data ⇒ Object
-
#initialize(path, type, read = nil) ⇒ Change
constructor
A new instance of Change.
Constructor Details
#initialize(path, type, read = nil) ⇒ Change
Returns a new instance of Change.
5 6 7 8 9 |
# File 'lib/dandelion/change.rb', line 5 def initialize(path, type, read = nil) @path = path @type = type @read = read end |
Instance Attribute Details
#path ⇒ Object (readonly)
Returns the value of attribute path.
3 4 5 |
# File 'lib/dandelion/change.rb', line 3 def path @path end |
#type ⇒ Object (readonly)
Returns the value of attribute type.
3 4 5 |
# File 'lib/dandelion/change.rb', line 3 def type @type end |
Instance Method Details
#data ⇒ Object
11 12 13 |
# File 'lib/dandelion/change.rb', line 11 def data @read.() if @read end |