Class: Watchcat::MetadataKind
- Inherits:
-
Object
- Object
- Watchcat::MetadataKind
- Defined in:
- lib/watchcat/kind.rb
Instance Attribute Summary collapse
-
#kind ⇒ Object
Returns the value of attribute kind.
Instance Method Summary collapse
- #access_time? ⇒ Boolean
- #extended? ⇒ Boolean
-
#initialize(kind) ⇒ MetadataKind
constructor
A new instance of MetadataKind.
- #ownership? ⇒ Boolean
- #permission? ⇒ Boolean
- #write_time? ⇒ Boolean
Constructor Details
#initialize(kind) ⇒ MetadataKind
Returns a new instance of MetadataKind.
156 157 158 |
# File 'lib/watchcat/kind.rb', line 156 def initialize(kind) @kind = kind end |
Instance Attribute Details
#kind ⇒ Object
Returns the value of attribute kind.
154 155 156 |
# File 'lib/watchcat/kind.rb', line 154 def kind @kind end |
Instance Method Details
#access_time? ⇒ Boolean
160 161 162 |
# File 'lib/watchcat/kind.rb', line 160 def access_time? @kind == "access_time" end |
#extended? ⇒ Boolean
176 177 178 |
# File 'lib/watchcat/kind.rb', line 176 def extended? @kind == "extended" end |
#ownership? ⇒ Boolean
172 173 174 |
# File 'lib/watchcat/kind.rb', line 172 def ownership? @kind == "ownership" end |
#permission? ⇒ Boolean
168 169 170 |
# File 'lib/watchcat/kind.rb', line 168 def @kind == "permission" end |
#write_time? ⇒ Boolean
164 165 166 |
# File 'lib/watchcat/kind.rb', line 164 def write_time? @kind == "write_time" end |