Class: Txgh::EmptyResourceContents
- Inherits:
-
Object
- Object
- Txgh::EmptyResourceContents
- Defined in:
- lib/txgh/empty_resource_contents.rb
Instance Attribute Summary collapse
-
#tx_resource ⇒ Object
readonly
Returns the value of attribute tx_resource.
Instance Method Summary collapse
- #diff(other_contents) ⇒ Object
- #diff_hash(other_contents) ⇒ Object
- #empty? ⇒ Boolean
-
#initialize(tx_resource) ⇒ EmptyResourceContents
constructor
A new instance of EmptyResourceContents.
- #merge(other_contents, *args) ⇒ Object
- #phrases ⇒ Object
- #to_h ⇒ Object
- #to_s(*args) ⇒ Object
- #write_to(*args) ⇒ Object
Constructor Details
#initialize(tx_resource) ⇒ EmptyResourceContents
Returns a new instance of EmptyResourceContents.
5 6 7 |
# File 'lib/txgh/empty_resource_contents.rb', line 5 def initialize(tx_resource) @tx_resource = tx_resource end |
Instance Attribute Details
#tx_resource ⇒ Object (readonly)
Returns the value of attribute tx_resource.
3 4 5 |
# File 'lib/txgh/empty_resource_contents.rb', line 3 def tx_resource @tx_resource end |
Instance Method Details
#diff(other_contents) ⇒ Object
25 26 27 |
# File 'lib/txgh/empty_resource_contents.rb', line 25 def diff(other_contents) other_contents end |
#diff_hash(other_contents) ⇒ Object
29 30 31 32 33 |
# File 'lib/txgh/empty_resource_contents.rb', line 29 def diff_hash(other_contents) DiffCalculator::INCLUDED_STATES.each_with_object({}) do |state, ret| ret[state] = [] end end |
#empty? ⇒ Boolean
39 40 41 |
# File 'lib/txgh/empty_resource_contents.rb', line 39 def empty? true end |
#merge(other_contents, *args) ⇒ Object
35 36 37 |
# File 'lib/txgh/empty_resource_contents.rb', line 35 def merge(other_contents, *args) other_contents end |
#phrases ⇒ Object
9 10 11 |
# File 'lib/txgh/empty_resource_contents.rb', line 9 def phrases [] end |
#to_h ⇒ Object
21 22 23 |
# File 'lib/txgh/empty_resource_contents.rb', line 21 def to_h {} end |
#to_s(*args) ⇒ Object
17 18 19 |
# File 'lib/txgh/empty_resource_contents.rb', line 17 def to_s(*args) '' end |
#write_to(*args) ⇒ Object
13 14 15 |
# File 'lib/txgh/empty_resource_contents.rb', line 13 def write_to(*args) # no-op end |